
const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = 'hello';

    // LIFE-CYCLE CALLBACKS:
    tiledMap:cc.TiledMap;

    onLoad () {
        this.tiledMap = this.node.getComponent('cc.TiledMap');
        console.log(this.tiledMap.getTileSize());
        let layer=this.tiledMap.getLayer('background');
        
    }

    start () {

    }

    // update (dt) {}
}
